<?php include 'header.php' ?>
<div class="content">
       <div class="container_12">

        <?php echo form_open_multipart('test/newFood');?>            
       	<div class="grid_8">
        <h3><?php echo $title; ?></h3>        
        <?php
            if( isset($alert) )
            {
                echo $alert;
            }
        ?>   
            <div class="block3">
            	<!-- <div class="relative">
            		<img src="page3_img1.jpg" alt="" class="img_inner">
            		<div class="r_price"><span>$</span>32.99</div>
            	</div>   -->          	           
            	<div class="text1">Tên món ăn : </div>
                <?php echo form_input('food'); ?>
            </div>  
            <br>
            <div class="clear"></div>            
            <div class="block3">
            	<!-- <div class="relative">
            		<img src="<?php echo base_url('uploads/'.$menu_detail[$id]['picture']); ?>" alt="" class="img_inner" width="200px" height="200px">
            		<div class="r_price"><span>$</span>32.99</div>
            	</div>    -->         	           
            	<div class="text1">Hình ảnh : </div>    
                <?php echo form_upload('picture'); ?>            
            </div>  
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1">Cách nấu : </div>
               <?php echo form_textarea(array('name'=>'howtocook','class'=>'ckeditor')); ?>
            </div>  
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1">Gia vị : </div>
               <?php echo form_textarea(array('name'=>'spice','class'=>'ckeditor')); ?>
            </div>
            <br>
            <div class="clear"></div>
            <div class="block3">
                <!-- <div class="relative">
                    <img src="page3_img1.jpg" alt="" class="img_inner">
                    <div class="r_price"><span>$</span>32.99</div>
                </div>   -->                       
                <div class="text1"><?php echo form_submit('insertFood', 'Tạo món ăn');?></div>               
            </div>    
        </div>
        </form>             
        <div class="clear"></div>
       </div>
     </div>

<?php include 'footer.php' ?>